package org.hsc.proxy;

public class CacheComponent {
    String url; //the file address
    HttpResponse response; //the actually cached data (the http responed)
    int dataSize; //in bytes
    String lastModified;
    public String getLastModified()
    {
        return lastModified;
    }
    CacheComponent(String url,HttpResponse respone)
    { //C-tor
        this.url=url;
        this.response=respone;
//        Map<String,LinkedList<String>> headers=response.getHeaders();
        
        lastModified=response.getLastModified();
        dataSize=response.getContentLength();
    }
    
    public int getSize()
    {
        return dataSize;
    }
    public String getUrl(){
        return url;
    }
}
